import request from '@/utils/request'

export function saveMainBudget(data) {
  return request({
    url: '/mainbudget/save',
    method: 'put',
    data
  })
}
export function getMainBudget(data) {
  return request({
    url: `/mainbudget/getMainBudget/${data.customerId}/${data.engineerProjectId}`,
    method: 'get'
  })
}
export function getBindCategorys(mainBudgetId) {
  return request({
    url: `/mainbudget/getBindCategorys/${mainBudgetId}`,
    method: 'get'
  })
}
export function setMainDiscountRate(data) {
  return request({
    url: '/engineerProject/setMainDiscountRate',
    method: 'post',
    data
  })
}
